package org.example.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(name = "PROVIDER-HYSTRIX-8001",fallback = FallbackService.class)
public interface HystrixService {


    @GetMapping("/hystrix/ok")
    public String test_ok();

    @GetMapping("/hystrix/timeout")
    public String test_timeOut();

}
